package com.toe.user.webapi.mapper;

import com.toe.pojo.dto.user.UserReportArticleDTO;
import com.toe.pojo.entity.user.UserReportArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.toe.pojo.vo.user.UserReportArticleVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 陶涛
 * @since 2022-07-19
 */

@Repository
public interface UserReportArticleMapper extends BaseMapper<UserReportArticle> {
    // 插入举报帖子信息
    int insertReportArticle(UserReportArticleDTO userReportArticleDTO);

    // 分页查询举报帖子
    List<UserReportArticleVO> selectReportArticle();

    // 举报不通过根据id修改is_handled字段为2
    int forbidIsHandled(Long id);

    // 举报通过根据id修改is_handled字段为1
    int passIsHandled(Long id);

}
